// ****************************************************************************
//
// Logic 4: Inside Mama's Hut
//
// ****************************************************************************

#include "defines.txt"

if (new_room) {
  load.pic(room_no);
  draw.pic(room_no);
  discard.pic(room_no);
  set.horizon(1);
  load.view(100);
  set.view(ego,100);
  universe=3;
  step.size(ego,universe);
  draw(ego);
  show.pic();

  animate.obj(o2); //Mama Houngan
  load.view(9);
  set.view(o2,9);
  position(o2,50,120);
  draw(o2);
}

if (said("look")) {
  print("You are face to face with Mama Houngan.");
}

if (said("look","houngan")) {
  print("Who knows what goes on behind that crazy mask.");
  print("Mama:\"What mask?\"");
  }

if (said("talk","houngan")) {
  print("Mama:\"Position the hand over an item and press F10 to get a hint.\"");
  }

if (controller(left_click)){
    if(obj.in.box(ego, 121, 141, 142, 161)){ //Exit
       load.view(0);
       set.view(ego,0);
       new.room(3);
    }
    if(obj.in.box(ego, 3,121, 22,140)) { //sleep moss
       print("Mama:\"This is sleep moss.  Sleep moss can be used to make sleep potions and dream brews.\"");
       }
    if(obj.in.box(ego, 24,121, 43,140)) { //poison berries
       print("Mama:\"These are poison berries.  They can be distilled into a potent poison.\"");
       }
    if(obj.in.box(ego, 45,121, 64,140)) { //poison
       print("Mama:\"This is the poison distilled from poison berries.  To make it, you'll need a cauldron and a stove.\"");
       }
    if(obj.in.box(ego, 66,121, 85,140)) { //sleep potion
       print("Mama:\"This is a sleep potion.  To make it, you'll need a cauldron and a stove.\"");
       }
}

return();